//
//  WebService.h
//  OASystemManage
//
//  Created by joker on 15/7/21.
//  Copyright (c) 2015年 刘宣佚. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Constants.h"
@class WebService;

@protocol WebServiceDelegate <NSObject>

-(void)processReturnValue:(WebService * ) server ReturnValue:(NSString *) returnValue;

@end

@interface WebService : NSObject <NSURLConnectionDelegate>
{
    NSMutableData *receivedData;
    NSURLConnection *connection;
    NSStringEncoding encoding;
    NSString * returnValue;
}
@property id <WebServiceDelegate> delegate;
@property enum WebRequestType type;

- (id)initWithURL:(NSURL *)url AndRequestParam:(NSDictionary *)params Delegate: (id<WebServiceDelegate>) delegate;
- (NSString *)getReturnValue;
@end
